package zcj.stu;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

public class C22 {
    public static void main(String[] args) throws NoSuchMethodException {
        Method foo = C22.class.getMethod("foo", String.class, int.class);
        for (Parameter parameter : foo.getParameters()) {
            System.out.println(parameter.getName());
        }
    }
    public void foo(String name,int age){
    }
}
